﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="MaintainOptions.aspx.cs" Inherits="MyHealthByDesign.Admin.MaintainOptions" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>Maintain Options</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h3>Maintain Options</h3>
    <p style="font-weight: bold;">
        Use the form below to make additions, changes, and deletions to question options.
    </p>
    <br /><br />
    <p style="font-weight: bold;">
        Question: <asp:Label runat="server" ID="lblQuestionLabel">&nbsp;&nbsp;</asp:Label><asp:Button
            ID="btnReturnToQuestion" runat="server" Text="Return To Question" 
            onclick="btnReturnToQuestion_Click" />
    </p>
    <br />
    <div style="height: 1400px;">
        <div style="width: 300px; float: left;">
            <div>
                <div style="width: 200px; float: left;">
                    <asp:ListBox ID="lbOptions" runat="server" SelectionMode=Single Rows=15 
                        Width=200 OnSelectedIndexChanged="lbOptions_SelectedIndexChanged" 
                        AutoPostBack="True"></asp:ListBox><br /><br />
                    <asp:Button ID="btnDelete" runat="server" Text="Deactivate Selected Option" 
                        onclick="btnDelete_Click" 
                        OnClientClick="javascript:return confirm('Are you sure you want to deactivate the selected option ?')" 
                        Width="195px" />
                </div>
                <div style="width: 75px; float: left; padding-left:3px;">
                    <asp:ImageButton ID="btnMoveUp" ImageUrl="~/Images/btnUp.jpg" runat="server" Width=25 
                        onclick="btnMoveUp_Click" /><br /><br />
                    <asp:ImageButton ID="btnMoveDown" ImageUrl="~/Images/btnDown.jpg" runat="server" Width=25 
                        onclick="btnMoveDown_Click" />
                </div>
            </div>
        </div>
        <div style="width: 65%; float: left; padding-left:3px;">
            <asp:Label ID="lblErrors" runat="server" ForeColor="Red" Text=""></asp:Label><br /><br />
            <asp:PlaceHolder ID="phPanel" runat="server"></asp:PlaceHolder><br /><br />
            <div class="admin-content">
                <asp:ValidationSummary ID="vsOption" runat="server" ForeColor="Red" Style="padding-left: 55px;" Font-Italic="True" />
                <asp:Panel ID="pnlOptionCore" runat="server" Visible=false>
                    <ul>
                        <li>
                            <label for="optionFieldName">
                                Option Field Name:</label>
                            <asp:TextBox ID="tbOptionFieldName" runat="server"></asp:TextBox>&nbsp;                        
                        </li>
                        <li>
                            <label for="optionLabel">
                                Option Label:</label>
                            <asp:TextBox ID="tbOptionLabel" runat="server"></asp:TextBox>&nbsp;                        
                        </li>
                        <li>
                            <label for="optionCSS">
                                Option CSS Style:</label>
                            <asp:TextBox ID="tbOptionCSS" runat="server"></asp:TextBox>&nbsp;                        
                        </li>
                        <li>
                            <label for="optionHelpURL">
                                Option Help URL:</label>
                            <asp:TextBox ID="tbOptionHelpURL" runat="server"></asp:TextBox>&nbsp;                        
                        </li>
                        <li>
                            <label for="optionSpecial">
                                Option Special:</label>
                            <asp:CheckBox ID="cbSpecial" runat="server" TextAlign=Left />&nbsp;
                            <asp:TextBox ID="tbOptionSpecial" runat="server"></asp:TextBox>&nbsp;                    
                        </li>
                    </ul>
                </asp:Panel>
                <asp:Panel ID="pnlOptions" runat="server" Visible=False>
                    
                </asp:Panel>
                <asp:Panel ID="pnlSubmit" runat="server" Visible=False>
                    <ul>
                        <li>
                            <asp:Button ID="btnSubmit" runat="server" Text="Submit Form" 
                                CausesValidation="true" onclick="btnSubmit_Click" />                     
                        </li>
                    </ul>
                </asp:Panel>
            </div>
        </div>
    </div>
    <div style="width: 100%;">
    </div>
</asp:Content>
